package com.gph.saviorframework.es.core;

import com.gph.saviorframework.es.core.aggregation.AggregatedPage;
import org.elasticsearch.action.search.SearchResponse;
import org.springframework.data.domain.Pageable;

public interface SearchResultMapper {

    <T> AggregatedPage<T> mapResults(SearchResponse response, Class<T> clazz, Pageable pageable);
}
